home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / MacGS 2.5.2ß3 / (MacGSLib.π) / drvr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-17  |  1.3 KB  |  45 lines  |  [TEXT/R*ch]

  1. #ifndef _H_drvr_
  2. #define _H_drvr_
  3.  
  4. /* Copyright (C) 1993 Aladdin Enterprises.  All rights reserved.
  5.    Distributed by Free Software Foundation, Inc.
  6.  
  7. This file is part of Ghostscript.
  8.  
  9. Ghostscript is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  11. to anyone for the consequences of using it or for whether it serves any
  12. particular purpose or works at all, unless he says so in writing.  Refer
  13. to the Ghostscript General Public License for full details.
  14.  
  15. Everyone is granted permission to copy, modify and redistribute
  16. Ghostscript, but only under the conditions described in the Ghostscript
  17. General Public License.  A copy of this license is supposed to have been
  18. given to you along with Ghostscript so you can know your rights and
  19. responsibilities.  It should be in a file named COPYING.  Among other
  20. things, the copyright notice and this notice must be preserved on all
  21. copies.  */
  22.  
  23.  
  24. struct vector
  25. {
  26.     short    vJMP;
  27.     int        (*vCode) ();
  28. };
  29.  
  30. #define OFS(x)        offsetof(struct drvr, x)
  31.  
  32. typedef struct drvr
  33. {
  34.     short            drvrFlags, drvrDelay, drvrEMask, drvrMenu;
  35.     short            drvrOpen, drvrPrime, drvrCtl, drvrStatus, drvrClose;
  36.     char            drvrName[10];
  37.     short            drvrRTS;
  38.     struct vector    vCtl;
  39.     struct vector    vClose;
  40.  
  41. } DrvrRec, **DrvrH;
  42.  
  43.  
  44. #endif /* _H_drvr_ */
  45.